package com.soar.recruitment.module.web.bll.web;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.FragmentManager;
import android.webkit.JavascriptInterface;

public class SOARWebJSBridge {

    private Activity mActivity;
    private FragmentManager mFragmentManager;
    private MyHandler mMyHandler;

    public SOARWebJSBridge(Activity activity, FragmentManager fragmentManager) {
        this.mActivity = activity;
        this.mFragmentManager = fragmentManager;
        this.mMyHandler = new MyHandler(mActivity);
    }

    /********************* JS-START *********************/
    /**
     * 获取系统信息
     * @return
     */
    @JavascriptInterface
    public String sysPlatform() {
        return "";
    }



    /********************* JS-END *********************/

    private class MyHandler extends Handler {

        private Activity mActivity;

        public MyHandler(Activity activity) {
            mActivity = activity;
        }

        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            switch (msg.what) {

                default:

            }
        }
    }

    /********************* 具体的方法 *********************/

    public void doActivityResult(int requestCode, int resultCode, Intent intent) {

    }

    public void doDestory() {

    }
}
